<%@ Page Language="vb" AutoEventWireup="false" Codebehind="BOSalesReport.aspx.vb" Inherits="MIMS_WRS.Web.BOSalesReport"%>
<%@ Register TagPrefix="uc1" TagName="BOReportHeader" Src="../../UserControls/BOReportHeader.ascx" %>
<%@ Import namespace="MIMS_WRS.Web" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<HTML>
	<HEAD>
		<title>BO Sales Report</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="../../report.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		<!--
		function printDocument() {
			window.document.getElementById('ActionTop').style.display = "none";
			window.document.getElementById('ActionBottom').style.display = "none";
			window.print();
			window.document.getElementById('ActionTop').style.display = "block";
			window.document.getElementById('ActionBottom').style.display = "block";
		}
		//-->
		</script>
		<style>
			.OrderReport SPAN.highlight { COLOR: black! important }
			.OrderReport SPAN.highlight2 { COLOR: red }
		</style>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
				<uc1:BOReportHeader id="header" runat="server"></uc1:BOReportHeader>
			<br>
			<div align="center" class="ReportTitle">BO Sales Report</div>
			<asp:DataList EnableViewState="False" width="100%" ID="dlReport" Runat="server" CellPadding="2"
				RepeatColumns="2" BorderStyle="Solid" BorderWidth="1px" BorderColor="Black" GridLines="Both"
				RepeatDirection="Horizontal">
				<ItemStyle Width="50%"></ItemStyle>
				<ItemTemplate>
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<tr>
							<td align="left" valign="top"><%# GetPictureHTML(DataBinder.Eval(Container.DataItem, "ProductCode")) %></td>
							<td align="left" valign="top"><table CLASS="OrderReport" cellpadding="0" cellpadding="0" border="0">
									<tr>
										<td width="1%" nowrap>Code:</td>
										<td><%# DataBinder.Eval(Container.DataItem, "ProductCode")%></td>
									</tr>
									<tr>
										<td width="1%" nowrap>Color:</td>
										<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "Color"))%></td>
									</tr>
									<tr>
										<td width="1%" nowrap>Desc:</td>
										<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "SalesDescription1"))%></td>
									</tr>
									<tr>
										<td width="1%" nowrap>&nbsp;</td>
										<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "SalesDescription2"))%></td>
									</tr>
									<tr>
										<td width="1%" nowrap>Qty Available:</td>
										<td><%# GetQtyAvailHTML(Container.DataItem)%> <%# GetQtyAvailDesc(Container.DataItem)%></td>
									</tr>
									<% if (RequestContext.ShowFOB) then %>
									<tr>
										<td width="1%" nowrap>FOB:</td>
										<td><%# GetFOB(DataBinder.Eval(Container.DataItem, "FOB"), DataBinder.Eval(Container.DataItem, "Pack"))%>
											</td>
									</tr>
									<% end if%>
									<tr>
										<td width="1%" nowrap>Minimum Order:</td>
										<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "MinOrderQty"))%> <%# GetPackTypeTextNotNull(DataBinder.Eval(Container.DataItem, "MinOrderQty"), DataBinder.Eval(Container.DataItem, "Pack"))%></td>
									</tr>
									<tr>
										<td width="1%" nowrap>Tall Pallet Qty (for info only):</td>
										<td> <%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "TallPaletQty"))%> <%# GetPackTypeTextNotNull(DataBinder.Eval(Container.DataItem, "TallPaletQty"), DataBinder.Eval(Container.DataItem, "Pack"))%></td>
									</tr>
									<tr>
										<td width="1%" nowrap>Supplier No:</td>
										<td> <%# DataBinder.Eval(Container.DataItem, "SupplierCode")%> <%# DataBinder.Eval(Container.DataItem, "TypeCode")%> <%# DataBinder.Eval(Container.DataItem, "TypeCode")%><%# GetClearanceStockHTML(Container) %></td>
									</tr>
								</table>
							</td>
							<td  class="ItemHighlight" style="vertical-align:top; width:10px"><asp:Literal id="ltrItemIndex" Runat="server"></asp:Literal></td>
						</tr>
					</table>
				</ItemTemplate>
			</asp:DataList>
			<div id="ActionBottom">
				<br>
				<input type="button" value="Print" onclick="printDocument()">
			</div>
		</form>
	</body>
</HTML>
